package com.atxiaodei.kabudaspringannotation.demo.annotaions.configures.gupaoannotion;

import com.atxiaodei.kabudaspringannotation.project.gupaoentity.Person;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by kabuda
 */
public class MyTest {
    @Test
    public void test() {
        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);

        Person person = (Person)app.getBean("person");
        person.study();
    }
}
